package com.huihuiyun.huihuiyun.server.repository;

import com.huihuiyun.huihuiyun.server.domain.HhyMemberShoppingCart;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HhyMemberShoppingCartRepository extends JpaRepository<HhyMemberShoppingCart, String> {
    HhyMemberShoppingCart findHhyMemberShoppingCartByMemberIdAndProductId(String memberId, String productId);

    List<HhyMemberShoppingCart> findAllByMemberId(String memberId);
}
